/*
 * G2OServer.cpp
 *
 *  Created on: Sep 8, 2016
 *      Author: ubuntu
 */

#include "G2OServer.h"
#include "G2OClientConnect.h"

G2OServer::G2OServer(int port, int type) : TcpServer(port, type)
{
}

G2OServer::~G2OServer()
{
}

ClientConnection * G2OServer::on_connect(struct connectop *op, struct sockaddr *addr)
{
	G2OClientConnection *pConnect = new G2OClientConnection(this, op, addr);
	return pConnect;
}

